package com.springsecurity.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.springsecurity.dao.SysRightMapper;
import com.springsecurity.pojo.SysRight;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysRightServiceImpl extends ServiceImpl<SysRightMapper, SysRight> implements SysRightService {
    @Resource
    SysRightMapper rightMapper;

    @Override
    public List<SysRight> getSysRightByUserRoleId(Long roleId) {
        return rightMapper.getSysRightByUserRoleId(roleId);
    }
}
